package com.zoro.interviewee.clazz;

/**
 * @author zhaoxingwu
 */
public class RunTest {

    public static void main(String[] args) throws ClassNotFoundException {

        System.out.println("load class start");
        Class<?> clazz1 = Class.forName("com.zoro.interviewee.clazz.ThisIsClass");
        System.out.println("load class finished");

        System.out.println("load class start");
        Class<?> clazz2 = ThisIsAnotherClass.class;
        System.out.println("load class finished");

        System.out.println("load class start");
        Class<?> clazz3 = Thread.currentThread().getContextClassLoader().loadClass("com.zoro.interviewee.clazz.ThisAlsoClass");
        System.out.println("load class finished");

        System.out.printf("%nonly Class.forName method can load static field in  Class%n");



    }
}
